package com.ncloud.resman.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.ncloud.resman.conf.CustomJsonDateDeserializer;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by shiqiang on 2017/8/11.
 */
public class DeviceCpe implements Serializable {
    @JSONField(serializeUsing=ToStringSerializer.class)
    private Long deviceId;
    private String useName;
    private String contactPhone;
    private String custName;
    @JSONField(format="yyyy-MM-dd")
    private Date putDate;
    @JSONField(format="yyyy-MM-dd")
    private Date outDate;
    private String cpuModel;
    private Integer cpuNum;
    private String memoryModel;
    private String memoryCapacity;
    private String diskModel;
    private String diskCapacity;
    private Integer subNum;
    @JSONField(serializeUsing=ToStringSerializer.class)
    private Long createUser;
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    @JSONField(serializeUsing=ToStringSerializer.class)
    private Long updateUser;
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date updateDate;
    private DeviceBase deviceBase;
    public DeviceBase getDeviceBase() {
        return deviceBase;
    }

    public void setDeviceBase(DeviceBase deviceBase) {
        this.deviceBase = deviceBase;
    }

    public String getUseName() {
        return useName;
    }

    public void setUseName(String useName) {
        this.useName = useName;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getCustName() {
        return custName;
    }

    public void setCustName(String custName) {
        this.custName = custName;
    }

    public Date getPutDate() {
        return putDate;
    }
    @JsonDeserialize(using = CustomJsonDateDeserializer.class)
    public void setPutDate(Date putDate) {
        this.putDate = putDate;
    }

    public Date getOutDate() {
        return outDate;
    }
    @JsonDeserialize(using = CustomJsonDateDeserializer.class)
    public void setOutDate(Date outDate) {
        this.outDate = outDate;
    }

    public String getCpuModel() {
        return cpuModel;
    }

    public void setCpuModel(String cpuModel) {
        this.cpuModel = cpuModel;
    }

    public Integer getCpuNum() {
        return cpuNum;
    }

    public void setCpuNum(Integer cpuNum) {
        this.cpuNum = cpuNum;
    }

    public String getMemoryModel() {
        return memoryModel;
    }

    public void setMemoryModel(String memoryModel) {
        this.memoryModel = memoryModel;
    }

    public String getMemoryCapacity() {
        return memoryCapacity;
    }

    public void setMemoryCapacity(String memoryCapacity) {
        this.memoryCapacity = memoryCapacity;
    }

    public String getDiskModel() {
        return diskModel;
    }

    public void setDiskModel(String diskModel) {
        this.diskModel = diskModel;
    }

    public String getDiskCapacity() {
        return diskCapacity;
    }

    public void setDiskCapacity(String diskCapacity) {
        this.diskCapacity = diskCapacity;
    }

    public Integer getSubNum() {
        return subNum;
    }

    public void setSubNum(Integer subNum) {
        this.subNum = subNum;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getCreateDate() {
        return createDate;
    }
    @JsonDeserialize(using = CustomJsonDateDeserializer.class)
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateDate() {
        return updateDate;
    }
    @JsonDeserialize(using = CustomJsonDateDeserializer.class)
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }
}
